package com.kube.design.adapter;

/**
 * @author q.zhangr
 * @version 1.0.0
 * @date 2020/7/20
 */
public class MotorAdapterTest {

    public static void main(String[] args) {
        System.out.println("适配器模式测试：");
        Motor motor = (Motor) new ReadXml().getObject();
        motor.drive();
    }

}
